package com.lara1;

import java.util.Comparator;

class B{
	int i,j;
	B(int i,int j){
		this.i=i;
		this.j=j;
	}
	public String toString(){
		return "("+i+","+j+")";
	}
}
class C implements Comparator{

	@Override
	public int compare(Object obj1, Object obj2) {
		
		return ((B)obj1).i-((B)obj2).j;
	}
	
}
public class Manager12 {
public static void main(String[] args) {
	
}
}
